#ifndef __W25Q_driver_H_
#define __W25Q_driver_H_


#define SPI_DMA_USED	0


void SPI_init(void);
void SPI_uninit(void);
u8 SPI_read_write_byte(u8 TxData);
void SPI_cs_set(u8 H_L);

u16 SPI_read_bytes(u8 *pBuffer, u32 NumByte);
u16 SPI_write_bytes(const u8 *pBuffer, u32 NumByte);

void SPI_DMA_read_bytes(u8 *pBuffer, u32 NumByte);


#endif

